package com.java.sample.dialog;

public class WindowsTest {
    public static void main(String[] args) {
        StartupConfirmation confirmation = new WindowsGuiConfirmation();
        boolean result = confirmation.confirm(
                "启动确认 - 测试",
                "您确定要启动此服务吗？\n\n" +
                        "服务名称: 测试应用\n" +
                        "环境: 开发"
        );

        System.out.println("用户选择: " + (result ? "确认" : "取消"));
        System.exit(result ? 0 : 1);
    }
}
